package com.gulimall.product.feign;

import com.common.to.SkuReduceTo;
import com.common.to.SpuBoundsTo;
import com.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Author Rookie-6688
 * @Description 仓储服务调用
 * @Create 2021-03-25 14:52
 */
@FeignClient("gulimall-ware")
public interface WareFeignService {

    /**
     * 查询库存服务
     * @param skuIdList sku id集合
     * @return
     */
    @PostMapping("ware/waresku/stockMap")
    public R getStockMap(@RequestBody List<Long> skuIdList);

}
